package com.chengjie.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chengjie.common.annotation.Excel;
import com.chengjie.common.core.domain.BaseEntity;

/**
 * 防疫记录对象 epidemic_prevention
 * 
 * @author ycj
 * @date 2022-05-02
 */
public class EpidemicPrevention extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String code;

    /** 业主姓名 */
    @Excel(name = "业主姓名")
    private String name;

    /** 体温 */
    @Excel(name = "体温")
    private String temperature;

    /** 登记住所 */
    @Excel(name = "登记住所")
    private String home;

    /** 健康码颜色 */
    @Excel(name = "健康码颜色")
    private Long color;

    /** 外地返回 0为是，1为否 */
    @Excel(name = "外地返回 0为是，1为否")
    private String type;

    /** 返回地址 */
    @Excel(name = "返回地址")
    private String address;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creatBy;

    /** 登记时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登记时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTemperature(String temperature) 
    {
        this.temperature = temperature;
    }

    public String getTemperature() 
    {
        return temperature;
    }
    public void setHome(String home) 
    {
        this.home = home;
    }

    public String getHome() 
    {
        return home;
    }
    public void setColor(Long color) 
    {
        this.color = color;
    }

    public Long getColor() 
    {
        return color;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setCreatBy(String creatBy) 
    {
        this.creatBy = creatBy;
    }

    public String getCreatBy() 
    {
        return creatBy;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("temperature", getTemperature())
            .append("home", getHome())
            .append("color", getColor())
            .append("type", getType())
            .append("address", getAddress())
            .append("creatBy", getCreatBy())
            .append("creatTime", getCreatTime())
            .toString();
    }
}
